package com.woniu40.petai_user.mapper;

import com.woniu40.petai_user.vo.CoordinatesVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CoordinatesMapper {

    @Select("select hospital_longitude as longitude,hospital_latitude as latitude from t_hospital")
    List<CoordinatesVo> selectHospital();

    @Select("select hospital_longitude as longitude,hospital_latitude as latitude from t_hospital where hospital_id=${hospitalId}")
    CoordinatesVo select(Integer hospitalId);


}
